(vcursor-modifiers): New defcustom.
authorEli Zaretskii <eliz@is.elta.co.il>
Sat, 21 Feb 2004 13:36:00 +0000 (13:36 +0000)
committerEli Zaretskii <eliz@is.elta.co.il>
Sat, 21 Feb 2004 13:36:00 +0000 (13:36 +0000)
(vcursor-cs-binding): Use vcursor-modifiers instead of a hard-coded list.

lisp/vcursor.el

index 6d06dbdb9dc6a3deea049d85b267f31da2038615..4de92f02f0ba3e0469f725eedcc80f849318dc15 100644 (file)
 ;;  - The logic in vcursor-find-window is rather complicated and
 ;;    therefore bug-prone, though in practice it seems to work OK.
 ;;
-;; Possible enhnacements:
+;; Possible enhancements:
 ;; It would be easy to implement vcursor-push (save vcursor position
 ;; as mark and deactivate) and vcursor-pop (deactivate vcursor and
 ;; move to last pushed position) functions.
@@ -342,9 +342,14 @@ disable the vcursor."
   :type '(choice (const t) (const nil) (const copy))
   :group 'vcursor)
 
+(defcustom vcursor-modifiers (list 'control 'shift)
+  "*A list of modifiers that are used to define vcursor key bindings."
+  :type '(repeat symbol)
+  :group 'vcursor)
+
 ;; Needed for defcustom, must be up here
 (defun vcursor-cs-binding (base &optional meta)
-  (vector (let ((key (list 'control 'shift (intern base))))
+  (vector (let ((key (append vcursor-modifiers (list (intern base)))))
            (if meta
                (cons 'meta key)
              key))))